package com.hee.erp.modules.controller;


import com.hee.erp.common.R;
import com.hee.erp.modules.service.ISysMenuService;
import com.hee.erp.vo.MenuNode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author weizehong
 * @since 2022-06-13
 */
@RestController
@RequestMapping("/modules/sysMenu")
@Api(tags = "sysMenu",produces = "application/json")
@Slf4j
public class SysMenuController {

    @Autowired
    ISysMenuService sysMenuService;

    @GetMapping("/getMenuList")
    @ApiOperation(value = "getMenuList")
    public R getMenuList(){
        List<MenuNode> menuNodeList = sysMenuService.getMenuList();
        return R.success(menuNodeList);
    }

}

